package com.lagou.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: liuhongfei
 * @create: 2021/12/09 11:31
 */
@Data
@NoArgsConstructor //生成无参构造
@AllArgsConstructor //生成全参构造
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;

    //@TableField(select = false) //select = false，不查询对应字段
    private String name;
    private Integer age;


    @TableField("email")
    private String mail;


    @TableField(exist = false, select = false)
    private String address;
}
